package com.xsmart.fileserver.dao;

import com.xsmart.common.entity.fileupload.FileUpload;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface FileUploadDao {
    @Insert("insert into infi_image_list(image_url,upload_time,upload_user_id)values(#{fileUpload.imageUrl},#{fileUpload.uploadTime},#{fileUpload.uploadUserId})")
    @Options(useGeneratedKeys = true, keyProperty = "fileUpload.imageId")
    int saveFileUpload(@Param("fileUpload") FileUpload fileUpload);
}
